import request from '@/utils/request'

//  查询现场验标列表
export function getInspectionList(params) {
    return request({
        url: '/business/onSiteInspectionOfStandards/list',
        method: 'get',
        params
    })
}

//  增加现场验标信息
export function addInspection(data) {
    return request({
        url: '/business/onSiteInspectionOfStandards/addData',
        method: 'post',
        data
    })
}

//  更新现场验标信息
export function updateInspection(data) {
    return request({
        url:'/business/onSiteInspectionOfStandards/updateData',
        method:'post',
        data
    })
}

//  删除理赔模型
export function delInspection(params) {
    return request({
        url:`/business/onSiteInspectionOfStandards/deleteData`,
        method:'delete',
        params
    })
}

//  获取理赔模型详情
export function getInspection(params){
    return request({
        url: `/business/onSiteInspectionOfStandards/getDetail`,
        method: 'get',
        params
    })
}

//文件导入路径
export  const uploadUrl = '/fileSystem/fileUpload/uploadFile'

//  获取图片路径
export function getImagePath(id){
    return request({
        url: `/fileSystem/fileUpload/getFileArchive/${id}`,
        method: 'get',

    })
}